package org.vacoor.ticket.bean;


/**
 * 列车的类型
 * 
 * @author vacoor
 *
 */
public enum TrainType {
	//这里需要URL编码,暂时这样解决
//	ALL("全部","QB%23D%23Z%23T%23K%23QT%23"),D("动车","D%23"),Z("Z字头","Z%23"),T("T字头","T%23"),K("K字头","K%23"),OTHER("其他","QT%23");
	ALL("全部","QB%23D%23Z%23T%23K%23QT%23"),D("动车","D%23"),Z("Z字头","Z%23"),T("T字头","T%23"),K("K字头","K%23"),O("其他","QT%23");
	
	private String name;
	private String value;
	
	private TrainType(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	@Override
	public String toString() {
		return name + "[" + value + "]";
	}
}
